// 引入 request 文件
import request from '@/common/request.js'
// 查询顶部菜单
export const getTopMenu = () => {
	return request({
		url: '/app-api/cms/menu/list',
		method: 'get'
	})
}
// 查询子菜单
export const getMenu = (params) => {
	return request({
		url: '/app-api/cms/menu/list-by-parent-id',
		method: 'get',
		data: params
	})
}
// 查询文本详情
export const getContentText = (params) => {
	return request({
		url: '/app-api/cms/content-text/get',
		method: 'get',
		data: params
	})
}
// 查询科室列表
export const getDeptList = (params) => {
	return request({
		url: '/app-api/cms/content-dept/list',
		method: 'get',
		data: params
	})
}
export const getDeptDetail = (params) => {
	return request({
		url: '/app-api/cms/content-dept/get',
		method: 'get',
		data: params
	})
}
// 查询科室专家
export const getDeptExpertByDept = (params) => {
	return request({
		url: '/app-api/cms/content-expert/list-by-dept-id',
		method: 'get',
		data: params
	})
}
// 查询科室专家
export const getDeptExpert = (params) => {
	return request({
		url: '/app-api/cms/content-expert/page',
		method: 'get',
		data: params
	})
}
export const getDeptExpertDetail = (params) => {
	return request({
		url: '/app-api/cms/content-expert/get',
		method: 'get',
		data: params
	})
}
// 查询新闻列表
export const getNewsList = (params) => {
	return request({
		url: '/app-api/cms/content-news/page',
		method: 'get',
		data: params
	})
}
// 查询新闻详情
export const getNewsDetail = (params) => {
	return request({
		url: '/app-api/cms/content-news/get',
		method: 'get',
		data: params
	})
}
// 查询图集列表
export const getImageList = (params) => {
	return request({
		url: '/app-api/cms/content-image/get',
		method: 'get',
		data: params
	})
}
// 查询字典
export const getDictList = (params) => {
	return request({
		url: '/app-api/cms/dict-data/list-by-type',
		method: 'get',
		data: params
	})
}